/**
 * Copyright (C), 2020, 安徽贝慕信息科技有限公司
 * FileName: BackendApiDTO
 * Author:   Allen
 * Date:     2020/8/23
 * Description: 开放后端API信息实体DTO
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bim.marvel.openapi.client.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 〈开放后端API信息实体DTO〉
 *
 * @author Allen
 * @date 2020/8/10
 * @since 1.0.0
 */
@Getter
@Setter
@ToString
@ApiModel(value = "BackendApiDTO", description = "开放后端API信息实体DTO")
public class BackendApiDTO extends BaseDTO implements Serializable {

    /**
     * id
     */
    @ApiModelProperty(value = "主键id", name = "id", example = "1", hidden = true)
    private Long id;
    /**
     * api名称
     */
    @ApiModelProperty(value = "api名称-接口名称", name = "name", example = "1", position = 2)
    private String name;
    /**
     * 服务ID
     */
    @ApiModelProperty(value = "资源服务ID", name = "serviceId", example = "marvel-order", position = 3)
    private String serviceId;
    /**
     * 路径(使用模式匹配)，例如/foo/*
     */
    @ApiModelProperty(value = "请求路径uri", name = "path", example = "/order/api/id", position = 4)
    private String path;
    /**
     * 是否使用参数签名
     */
    @ApiModelProperty(value = "是否使用参数签名-默认是", name = "signature", example = "true", position = 5)
    private Boolean signature;

}
